<legend class='hyc-legend'>
    <span>OTD导入</span>
</legend>


<div class="col-md-13" style="margin-bottom: 40px">
    <div style="font-size: 16px; text-align: left; position: relative;">
        上传填写好的订单追踪信息表
        <input class="btn btn-warning" type="file" name="file" id="file" nv-file-select="" uploader="uploader"/>
    </div>


    <table class="table" style="display: none">
        <thead>
        <tr>
            <th width="50%">文件名</th>
            <th ng-show="uploader.isHTML5">文件大小</th>
            <th ng-show="uploader.isHTML5">导入进度条</th>
            <th>成功状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in uploader.queue">
            <td><strong>{{ item.file.name }}</strong></td>
            <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>
            <td ng-show="uploader.isHTML5">
                <div class="progress" style="margin-bottom: 0;">
                    <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
                </div>
            </td>
            <td class="text-center">
                <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
                <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
                <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
            </td>
            <td nowrap>
                <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()"
                        ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                    <span class="glyphicon glyphicon-upload"> 导入</span>
                </button>
                <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()"
                        ng-disabled="!item.isUploading">
                    <span class="glyphicon glyphicon-ban-circle"> 取消</span>
                </button>
                <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
                    <span class="glyphicon glyphicon-trash"> 移除</span>
                </button>
            </td>
        </tr>
        </tbody>
    </table>

</div>
